let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start"),
                    Object.defineProperty(o, '__esModule', {
                        value: !0
                    }),
                    (o.IntersectionUtils = void 0);
                var n = (function() {
                    function t() {}
                    return (
                        (t.line2Line = function(t, e, o, n, i, r, a, s) {
                            var c = (s - r) * (o - t) - (a - i) * (n - e);
                            if (0 !== c) {
                                var l = ((a - i) * (e - r) - (s - r) * (t - i)) / c,
                                    u = ((o - t) * (e - r) - (n - e) * (t - i)) / c;
                                if (0 <= l && l <= 1 && 0 <= u && u <= 1) return !0;
                            }
                            return !1;
                        }),
                        (t.line2Rect = function(e, o, n, i, r, a, s, c, l, u) {
                            void 0 === l && (l = 0.5), void 0 === u && (u = 0.5);
                            var h = s * l,
                                p = c * u,
                                f = r - h,
                                d = a - p,
                                g = r + h,
                                _ = a - p,
                                y = r + h,
                                C = a + p,
                                m = r - h,
                                v = a + p;
                            return (
                                !!t.line2Line(e, o, n, i, f, d, g, _) ||
                                !!t.line2Line(e, o, n, i, g, _, y, C) ||
                                !!t.line2Line(e, o, n, i, y, C, m, v) ||
                                t.line2Line(e, o, n, i, m, v, f, d)
                            );
                        }),
                        (t.pointInPolygon = function(t, e, o) {
                            for (
                                var n = !1, i = o.length, r = 0, a = i - 1; r < i - 1; a = r
                            ) {
                                var s = o[(r += 2)],
                                    c = o[r + 1],
                                    l = o[a],
                                    u = o[a + 1];
                                c > e != u > e &&
                                    t < ((l - s) * (e - c)) / (u - c) + s &&
                                    (n = !n);
                            }
                            return n;
                        }),
                        (t.line2Polygon = function(e, o, n, i, r) {
                            for (var a = r.length, s = 0; s < a; s += 2) {
                                var c = r[s],
                                    l = r[s + 1],
                                    u = r[(s + 2) % length],
                                    h = r[(s + 3) % length];
                                if (t.line2Line(e, o, n, i, c, l, u, h)) return !0;
                            }
                            return !1;
                        }),
                        (t.rect2Rect = function(t, e, o, n, i, r, a, s, c, l, u, h) {
                            void 0 === c && (c = 0.5),
                                void 0 === l && (l = 0.5),
                                void 0 === u && (u = 0.5),
                                void 0 === h && (h = 0.5);
                            var p = o * c,
                                f = n * l,
                                d = a * u,
                                g = s * h;
                            return (
                                t - p <= i + d &&
                                t + p >= i - d &&
                                e - f <= r + g &&
                                e + f >= r - g
                            );
                        }),
                        t
                    );
                })();
                (o.IntersectionUtils = n), console.log("end");
            module.exports =  e.exports;